package com.zhangxu.microservice.system.web.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class EmployeeResp {

    @Schema(description = "员工ID")
    private Long id;

    @Schema(description = "员工账号")
    private String account;

    @Schema(description = "员工姓名")
    private String name;

    @Schema(description = "邮箱地址")
    private String email;

    @Schema(description = "手机号码")
    private String phone;
    /**
     * 性别：MALE / FEMALE / UNKNOWN
     */
    @Schema(description = "性别")
    private String gender;

    /**
     * 用户状态：INIT（初始）、ENABLE（启用）、DISABLE（禁用）
     */
    @Schema(description = "用户状态")
    private String status;

    /**
     * 创建时间（自动填充）
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

}
